<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
        body, html {width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
        #allmap{width:100%;height:90%;}
        p{margin-left:5px; font-size:14px;}
    </style>
    <script type="text/javascript" src="//api.map.baidu.com/api?v=3.0&ak=dcdZn6OA24sVa0BFx6XyGQ2k6nbrHiCE"></script>
    <title>叠加全景图层</title>
</head>
<body>
<div id="allmap"></div>
<p>全景图层用于展示全景覆盖的城市范围</p>
</body>
</html>
<script type="text/javascript">
    var map = new BMap.Map('allmap');
    map.centerAndZoom('上海');
    // 覆盖区域图层测试
    map.addTileLayer(new BMap.PanoramaCoverageLayer());
</script>